package db;

import kz.home.obj.City;

import javax.microedition.rms.RecordFilter;

/**
 * <strong>title</strong>
 * <p> describe
 *
 * @author: Danik <br>
 * Date: 16.07.2009  <br>
 * Time: 10:50:00  <br>
 */
public class CityFilter implements RecordFilter{
    private String id = "";

    public CityFilter(String id) {
        this.id = id;
    }

    public boolean matches(byte[] bytes) {
        City city = City.getCity(bytes);

        return id.equals(city.getId());
    }
}
